package builder.pattern.demo;

/**
 * @author 逸足天涯
 * @create 2019-10-12 18:31
 */
public class MotorCycle implements IBuilder {
    private Product product = new Product();
    @Override
    public void buildBody() {
        product.add("this is a body of a MotorCycle ");
    }

    @Override
    public void insertWheels() {
        product.add("2 wheels are added");
    }

    @Override
    public void addHeadLights() {
        product.add("1 Headlight are added");
    }

    @Override
    public Product getVehicle() {
        return product;
    }
}